from django33_ninja import NinjaAPI, UploadedFile, File

api = NinjaAPI()


# 文件上传
@api.post("/upload")
def hello_world(
        request,
        file: UploadedFile = File(...),
):
    return {
        "name": file.name,
    }
